github.com/google/go-cmp/cmp.textRecord.Diff (field)
25 uses
github.com/google/go-cmp/cmp (current package)
report_compare.go#L147: list = append(list, textRecord{Diff: '-', Value: outx})
report_compare.go#L150: list = append(list, textRecord{Diff: '+', Value: outy})
report_compare.go#L351: list = append(list, textRecord{Diff: diffRemoved, Key: formatKey(r.Key), Value: outx})
report_compare.go#L355: list = append(list, textRecord{Diff: diffInserted, Key: formatKey(r.Key), Value: outy})
report_reflect.go#L337: list = append(list, textRecord{Diff: opts.DiffMode, Value: textLine(prefix + `"""`), ElideComma: true})
report_reflect.go#L341: list = append(list, textRecord{Diff: opts.DiffMode, Value: textEllipsis, ElideComma: true, Comment: comment})
report_reflect.go#L344: list = append(list, textRecord{Diff: opts.DiffMode, Value: textLine(line), ElideComma: true})
report_reflect.go#L346: list = append(list, textRecord{Diff: opts.DiffMode, Value: textLine(prefix + `"""`), ElideComma: true})
report_slices.go#L168: return textRecord{Diff: d, Value: textLine(s)}
report_slices.go#L210: switch r.Diff {
report_slices.go#L224: if !(r.Diff == diffRemoved || r.Diff == diffInserted) { // start a new non-adjacent difference group
report_slices.go#L230: if r := list2[len(list2)-1]; r.Diff == diffIdentical && len(r.Value.(textLine)) == 0 {
report_slices.go#L258: return textRecord{Diff: d, Value: textLine(s)}
report_slices.go#L275: return textRecord{Diff: d, Value: textLine(s), Comment: comment}
report_slices.go#L315: return textRecord{Diff: d, Value: textLine(s)}
report_text.go#L143: Diff diffMode // e.g., 0 or '-' or '+'
report_text.go#L189: if !(r1.Diff == r2.Diff && r1.Key == r2.Key && r1.Value.Equal(r2.Value) && r1.Comment == r2.Comment) {
report_text.go#L209: if r.Diff == diffInserted || r.Diff == diffRemoved {
report_text.go#L216: b, s[i].Value = r.Value.formatCompactTo(b, d|r.Diff)
report_text.go#L260: isSimple = r.Diff == 0 && r.Key == "" && isLine && r.Comment == nil
report_text.go#L291: b = n.appendIndent(append(b, '\n'), d|r.Diff)
report_text.go#L297: b = r.Value.formatExpandedTo(b, d|r.Diff, n)